// 用户信息验证规则
export const userInfoRules = {
  name: [
    { required: true, message: '请输入姓名', trigger: 'blur' },
    { min: 2, max: 5, message: '长度在 2 到 5 个字符', trigger: 'blur' }
  ],
  idCard: [{ required: true, message: '请输入身份证号', trigger: 'blur' }],
  ethic: [{ required: true, message: '请选择民族', trigger: 'blur' }],
  deptId: [{ required: true, message: '请选择部门', trigger: 'blur' }],
  rawRole: [{ required: true, message: '请选择员工身份', trigger: 'blur' }],
  
  politic: [{ required: true, message: '请选择政治面貌', trigger: 'blur' }],
  phone: [{ required: true, message: '请输入电话号码', trigger: 'blur' }],
  joinWorkTime: [{ required: true, message: '请选择参加工作时间', trigger: 'blur' }],
  workTime: [{ required: true, message: '请选择来校时间', trigger: 'blur' }],
  contractDate: [{ required: true, message: '请选择合同起止', trigger: 'blur' }]
}

// 创建任务验证规则
export const createTaskRules = {
  name: [ { required: true, message: '请输入名称', trigger: 'blur' } ],
  taskType: [ { required: true, message: '请选择任务类型', trigger: 'blur' } ],
  note: [ { required: true, message: '请输入名称', trigger: 'blur' } ],
  totalWage: [ { type: 'number', min: 0, max: 500000, required: true, message: '请输入名称', trigger: 'blur' } ]
}

// 员工工资验证规则
export const wageFormRules = {
  posPay: [ { type: 'number', required: true, message: '请输入基础工资', trigger: 'blur' } ],
  salaryPay: [ { type: 'number', required: true, message: '请输入薪级工资', trigger: 'blur' } ],
  ratio: [ { type: 'number', required: true, message: '请输入提高10%', trigger: 'blur' } ],
  monthMerit: [ { type: 'number', required: true, message: '请输入月绩效工资', trigger: 'blur' } ],
  yearMerit: [ { type: 'number', required: true, message: '请输入年末绩效工资', trigger: 'blur' } ],
  extraLessonMerit: [ { type: 'number', required: true, message: '请输入超课时费', trigger: 'blur' } ],
  counsellorAllowance: [ { type: 'number', required: true, message: '请输入辅导员津贴', trigger: 'blur' } ],
  specialMerit: [ { type: 'number', required: true, message: '请输入专项奖惩绩效', trigger: 'blur' } ],
  overtimeMerit: [ { type: 'number', required: true, message: '请输入加班工资', trigger: 'blur' } ],
  reformPay: [ { type: 'number', required: true, message: '请输入改革性补贴', trigger: 'blur' } ],
  reservePart: [ { type: 'number', required: true, message: '请输入工改保留', trigger: 'blur' } ],
  newEmpSubsidy: [ { type: 'number', required: true, message: '请输入2000年1月1日参加工作补贴', trigger: 'blur' } ],
  talentIntroPay: [ { type: 'number', required: true, message: '请输入人才引进补贴', trigger: 'blur' } ],
  proLeaderPay: [ { type: 'number', required: true, message: '请输入学科带头人', trigger: 'blur' } ],
  officeDirectorPay: [ { type: 'number', required: true, message: '请输入室主任津贴', trigger: 'blur' } ],
  technicianPay: [ { type: 'number', required: true, message: '请输入技师津贴', trigger: 'blur' } ],
  epidemicPay: [ { type: 'number', required: true, message: '请输入卫生防疫津贴', trigger: 'blur' } ],
  nursePay: [ { type: 'number', required: true, message: '请输入护龄津贴', trigger: 'blur' } ],
  securityPay: [ { type: 'number', required: true, message: '请输入安保人员特岗津贴', trigger: 'blur' } ],
  secretPay: [ { type: 'number', required: true, message: '请输入保密津贴', trigger: 'blur' } ],
  driverPay: [ { type: 'number', required: true, message: '请输入专职司机工作补贴', trigger: 'blur' } ],
  politicTeacherPay: [ { type: 'number', required: true, message: '请输入思政教师岗位津贴', trigger: 'blur' } ],
  onlyChildPay: [ { type: 'number', required: true, message: '请输入独子费', trigger: 'blur' } ],
  examPay: [ { type: 'number', required: true, message: '请输入考务费', trigger: 'blur' } ],
  trafficPay: [ { type: 'number', required: true, message: '请输入交通补助', trigger: 'blur' } ],
  endowmentIns: [ { type: 'number', required: true, message: '请输入养老保险', trigger: 'blur' } ],
  careerIns: [ { type: 'number', required: true, message: '请输入职业年金', trigger: 'blur' } ],
  medicalIns: [ { type: 'number', required: true, message: '请输入医疗保险', trigger: 'blur' } ],
  unemploymentIns: [ { type: 'number', required: true, message: '请输入失业保险', trigger: 'blur' } ],
  housingProvidentFund: [ { type: 'number', required: true, message: '请输入住房公积金', trigger: 'blur' } ]
}